<form id='tasks-task-edit-state-form' onsubmit='return false;'>

<input type=hidden name='task[id]' value='<?php echo $task['id']?>'/>
<h3>State</h3>
<?php
$arValues = array(DevTask::BACKLOG,DevTask::SPRINT,DevTask::WORK_IN_PROGRESS,DevTask::DONE);
$arName = array("Backlog", "Sprint", "Work In Progress", "Done");
?>
<?php foreach($arValues as $i=>$value): ?>
<?php $checked = $value == $task['state'] ? 'checked' : ''; ?>
<input <?php echo $checked ?> type='radio' name='task[state]' value='<?php echo $value ?>'/> <?php echo $arName[$i] ?>
<?php endforeach ?>
<h3>estimated points</h3>
<input type='text' id='taskFormEstimated' name='task[estimated]' value='<?php echo $task['estimated'] ? number_format($task['estimated'],1) : '' ?>' size='3'/>

<div style='margin-left:300px'>
<button onclick='tasks.task.submitEditStateForm()' type='button'>save</button>
<span id='tasks-task-edit-state-form-loading' style='display:none'><image id='alg' src='/images/ajax_loading.gif'/></span>
</div>

</form>